<el-dialog class="dialogStyleBase" title="设置" width="600px" :visible.sync="editVisible"
    :before-close="function(){onCancel('editForm')}" append-to-body>
    <div v-loading="load">
        <el-form ref="editForm" :model="form" label-width="100px" label-position="left">
            <LayoutCell>
                <el-form-item label="选择门店" prop="" :rules="{ required: true, message: '请选择门店'}" v-if="editType == 'add'">
                    <SelectDataStore v-model="storeList" :appWindow="appWindow" :count="1" 
                        :apiConfig="$vFN.Tools.getAppGlobalData('componentsApiConfig.SelectStore', appWindow)"></SelectDataStore>
                    <!-- <el-button @click="SelectDataStore()">添加门店</el-button>{{storeList}} -->
                </el-form-item>
                <el-form-item label="比例" prop="ratio">
                    <el-input v-model="form.ratio" style="width: 200px;"><template slot="append">%</template> </el-input>
                </el-form-item>
            </LayoutCell>

        </el-form>
    </div>
    <div slot="footer">
        <el-row>
            <el-col :span="12" style="text-align: left;">
                <el-button @click="mixinEdit_resetForm('editForm')">重 置</el-button>
            </el-col>
            <el-col :span="12">
                <el-button @click="onCancel()">取 消</el-button>
                <el-button type="primary" @click="sum()">确定</el-button>
            </el-col>
        </el-row>
    </div>
</el-dialog>